package com.itheima.controller.mqtt;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 功能：
 * 作者：大风
 * 日期：2024/8/23 11:17
 */
@RestController
@RequestMapping("/resource")
public class RuleController {
    @PostMapping("/process")
    public void process(@RequestBody Map<String,Object> params){
        System.out.println("规则引擎__________");
        params.entrySet().stream().forEach(x->{
            System.out.println(x.getKey() + ":" + x.getValue());
        });
    }
}